﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CollegeSim.CourseScheduler.Presentation.Facade;

namespace CollegeSim.CourseScheduler.Presentation
{
    // Author: Ryan Redburn
    // Project: Course Scheduler
    // Date: 5/20/2014

    public partial class FormSessionManagement : Form
    {
        #region [ Fields ]

        private readonly SchedulerFacade _facade;

        #endregion

        #region [ Constructors ]

        // Initialize form resources
        public FormSessionManagement(SchedulerFacade facade)
        {
            InitializeComponent();
            _facade = facade;
        }

        #endregion

        #region [ Events ]

        // Displays session and statistics data on load
        private void FormSessionManagement_Load(object sender, EventArgs e)
        {
            // TODO
        }

        // Displays detailed session information or shows all students for the selected session
        // depending on the button clicked
        private void dgvSessions_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            // TODO
        }

        // Displays detailed information for the given student
        private void dgvStudents_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            // TODO
        }

        // Opens the form for creating a new session
        private void btnCreate_Click(object sender, EventArgs e)
        {
            // TODO
        }

        // Refreshes the datagridviews and statistics boxes
        private void btnRefresh_Click(object sender, EventArgs e)
        {
            // TODO
        }

        // Closes the form
        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }

        #endregion

        #region [ Internal Methods ]

        /// <summary>
        /// Creates and displays the session table in the session datagridview
        /// </summary>
        private void DisplaySessionTable()
        {
            // TODO
        }

        /// <summary>
        /// Creates and displays the student table for a given session in the student datagridview.
        /// </summary>
        /// <param name="sessionID">ID of session for which to display student data.</param>
        private void DisplayStudentTable(int sessionID)
        {
            // TODO
        }

        #endregion
    }
}
